package filehomework;

import java.io.File;
import java.util.Scanner;

public class test04 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入要删除的目录名：");
        File file=new File("./src/filehomework/"+scanner.nextLine());
        if (file.exists()){
            file.delete();
            System.out.println("删除成功！！！");
        }
        else{
            System.out.println("该目录不存在");
        }
    }
}
